<?php 
require_once '../../model/Customer.php';
$customer = new Customer();
$order_id = (int) $_POST['order_id'];
$sql = "SELECT order_detail.*,mau_name,size_name,kieu_name FROM order_detail,kieu,size,mau WHERE order_id = $order_id 
                AND order_detail.mau_id = mau.mau_id AND order_detail.size_id = size.size_id AND order_detail.kieu_id = kieu.kieu_id " ;
$rs = mysql_query($sql) or die(mysql_error().$sql);
?>
<div class="span12">
          <div class="widget">
            <div class="widget-title">
              <h4><i class="icon-reorder"></i>Đơn hàng</h4>
              <span class="tools"><a href="javascript:;" class="icon-chevron-down"></a><a href="javascript:;" class="icon-remove"></a></span></div>
            <div class="widget-body height-phone">
              <table class="table table-striped table-bordered" id="sample_1">
                <thead>
                  <tr>                    
                    <th>Mã SP</th>
                    <th class="hidden-phone">Hình ảnh</th>
                    <th style="text-align: right" width="30px">SL</th>
                    <th style="text-align: right">Giá</th>
                    <th class="hidden-phone" style="text-align: right">Thành tiền</th>
                    <th class="hidden-phone" style="text-align: center">Màu sắc</th>
                    <th class="hidden-phone" style="text-align: center">Size</th>
                    <th class="hidden-phone" style="text-align: center">Kiểu dáng</th>
                    <th></th>
                  </tr>
                </thead>
                <tbody>
                    <?php while($row = mysql_fetch_assoc($rs)){?>
                  <tr class="odd gradeX">                    
                    <td><?php echo $row['product_code']?></td>
                    <td class="hidden-phone"><?php echo "<img src='".$row['url_images']."' />" ;?></td>
                    <td style="text-align: right"><?php echo $row['number_product']?></td>
                    <td style="text-align: right"><?php echo number_format($row['price']);?></td>
                    <td class="hidden-phone" style="text-align: right"><?php echo number_format($row['total_price']);?></td>
                    <td class="hidden-phone" style="text-align: center"><?php echo $row['mau_name']?></td>
                    <td class="hidden-phone" style="text-align: center"><?php echo $row['size_name']?></td>
                    <td class="hidden-phone" style="text-align: center"><?php echo $row['kieu_name']?></td>
                    <td>
                        <i class="icon-trash tooltips delete_order" data-original-title="Xóa" data-placement="top" detail_id="<?php echo $row['detail_id']?>"></i>                        
                    </td>
                  </tr>
                    <?php } ?>
                </tbody>
              </table>
            </div>
          </div>
        </div>